package cn.kgc.spring.entity;

import java.util.Date;

/**
 * @author 课工场
 * @date 2024/2/19
 * @description
 */
public class Student {

    private String username;
    private String password;
    private Integer age;
    private Date birth;

    public Student(){
        System.out.println("student对象被创建");
    }

    public Student(String username,String password,Integer age, Date birth){
        System.out.println("student的有参构造被调用");
        this.username = username;
        this.password = password;
        this.age = age;
        this.birth = birth;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        System.out.println("setUsername");
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Student{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", birth=" + birth +
                '}';
    }
}
